home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / var / lib / dpkg / info / menu.postinst < prev    next >
Encoding:
Text File  |  2010-09-06  |  519 b   |  25 lines

  1. #!/bin/sh
  2.  
  3. set -e
  4.  
  5. # Package maintainers, DO NOT use this as an example for how to
  6. # call update-menus in your postinst! This script does several things
  7. # you shouldn't do, and doesn't do other things that you should
  8. # do. See /usr/share/doc/menu/ for more info.
  9.  
  10. case "$1" in
  11. triggered)
  12.     # This is triggered by any installation of a menu file and by
  13.     # any call to update-menus made in a package maintainer script.
  14.     update-menus --trigger
  15.         exit 0
  16. ;;
  17. *)
  18.     chmod a+x /usr/bin/update-menus
  19.     update-menus
  20.  
  21. ;;
  22. esac
  23.  
  24.  
  25.